package com.demo.scenic.domain;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class ScenicOtherExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ScenicOtherExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public ScenicOtherExample orderBy(String orderByClause) {
        this.setOrderByClause(orderByClause);
        return this;
    }

    public ScenicOtherExample orderBy(String ... orderByClauses) {
        StringBuffer sb = new StringBuffer();
        for (int i = 0; i < orderByClauses.length; i++) {
            sb.append(orderByClauses[i]);
            if (i < orderByClauses.length - 1) {
                sb.append(" , ");
            }
        }
        this.setOrderByClause(sb.toString());
        return this;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria(this);
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public static Criteria newAndCreateCriteria() {
        ScenicOtherExample example = new ScenicOtherExample();
        return example.createCriteria();
    }

    public ScenicOtherExample when(boolean condition, IExampleWhen then) {
        if (condition) {
            then.example(this);
        }
        return this;
    }

    public ScenicOtherExample when(boolean condition, IExampleWhen then, IExampleWhen otherwise) {
        if (condition) {
            then.example(this);
        } else {
            otherwise.example(this);
        }
        return this;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andScenicIdIsNull() {
            addCriterion("scenic_id is null");
            return (Criteria) this;
        }

        public Criteria andScenicIdIsNotNull() {
            addCriterion("scenic_id is not null");
            return (Criteria) this;
        }

        public Criteria andScenicIdEqualTo(Integer value) {
            addCriterion("scenic_id =", value, "scenicId");
            return (Criteria) this;
        }

        public Criteria andScenicIdNotEqualTo(Integer value) {
            addCriterion("scenic_id <>", value, "scenicId");
            return (Criteria) this;
        }

        public Criteria andScenicIdGreaterThan(Integer value) {
            addCriterion("scenic_id >", value, "scenicId");
            return (Criteria) this;
        }

        public Criteria andScenicIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("scenic_id >=", value, "scenicId");
            return (Criteria) this;
        }

        public Criteria andScenicIdLessThan(Integer value) {
            addCriterion("scenic_id <", value, "scenicId");
            return (Criteria) this;
        }

        public Criteria andScenicIdLessThanOrEqualTo(Integer value) {
            addCriterion("scenic_id <=", value, "scenicId");
            return (Criteria) this;
        }

        public Criteria andScenicIdIn(List<Integer> values) {
            addCriterion("scenic_id in", values, "scenicId");
            return (Criteria) this;
        }

        public Criteria andScenicIdNotIn(List<Integer> values) {
            addCriterion("scenic_id not in", values, "scenicId");
            return (Criteria) this;
        }

        public Criteria andScenicIdBetween(Integer value1, Integer value2) {
            addCriterion("scenic_id between", value1, value2, "scenicId");
            return (Criteria) this;
        }

        public Criteria andScenicIdNotBetween(Integer value1, Integer value2) {
            addCriterion("scenic_id not between", value1, value2, "scenicId");
            return (Criteria) this;
        }

        public Criteria andScenicDescIsNull() {
            addCriterion("scenic_desc is null");
            return (Criteria) this;
        }

        public Criteria andScenicDescIsNotNull() {
            addCriterion("scenic_desc is not null");
            return (Criteria) this;
        }

        public Criteria andScenicDescEqualTo(String value) {
            addCriterion("scenic_desc =", value, "scenicDesc");
            return (Criteria) this;
        }

        public Criteria andScenicDescNotEqualTo(String value) {
            addCriterion("scenic_desc <>", value, "scenicDesc");
            return (Criteria) this;
        }

        public Criteria andScenicDescGreaterThan(String value) {
            addCriterion("scenic_desc >", value, "scenicDesc");
            return (Criteria) this;
        }

        public Criteria andScenicDescGreaterThanOrEqualTo(String value) {
            addCriterion("scenic_desc >=", value, "scenicDesc");
            return (Criteria) this;
        }

        public Criteria andScenicDescLessThan(String value) {
            addCriterion("scenic_desc <", value, "scenicDesc");
            return (Criteria) this;
        }

        public Criteria andScenicDescLessThanOrEqualTo(String value) {
            addCriterion("scenic_desc <=", value, "scenicDesc");
            return (Criteria) this;
        }

        public Criteria andScenicDescLike(String value) {
            addCriterion("scenic_desc like", value, "scenicDesc");
            return (Criteria) this;
        }

        public Criteria andScenicDescNotLike(String value) {
            addCriterion("scenic_desc not like", value, "scenicDesc");
            return (Criteria) this;
        }

        public Criteria andScenicDescIn(List<String> values) {
            addCriterion("scenic_desc in", values, "scenicDesc");
            return (Criteria) this;
        }

        public Criteria andScenicDescNotIn(List<String> values) {
            addCriterion("scenic_desc not in", values, "scenicDesc");
            return (Criteria) this;
        }

        public Criteria andScenicDescBetween(String value1, String value2) {
            addCriterion("scenic_desc between", value1, value2, "scenicDesc");
            return (Criteria) this;
        }

        public Criteria andScenicDescNotBetween(String value1, String value2) {
            addCriterion("scenic_desc not between", value1, value2, "scenicDesc");
            return (Criteria) this;
        }

        public Criteria andScenicInstructionIsNull() {
            addCriterion("scenic_instruction is null");
            return (Criteria) this;
        }

        public Criteria andScenicInstructionIsNotNull() {
            addCriterion("scenic_instruction is not null");
            return (Criteria) this;
        }

        public Criteria andScenicInstructionEqualTo(String value) {
            addCriterion("scenic_instruction =", value, "scenicInstruction");
            return (Criteria) this;
        }

        public Criteria andScenicInstructionNotEqualTo(String value) {
            addCriterion("scenic_instruction <>", value, "scenicInstruction");
            return (Criteria) this;
        }

        public Criteria andScenicInstructionGreaterThan(String value) {
            addCriterion("scenic_instruction >", value, "scenicInstruction");
            return (Criteria) this;
        }

        public Criteria andScenicInstructionGreaterThanOrEqualTo(String value) {
            addCriterion("scenic_instruction >=", value, "scenicInstruction");
            return (Criteria) this;
        }

        public Criteria andScenicInstructionLessThan(String value) {
            addCriterion("scenic_instruction <", value, "scenicInstruction");
            return (Criteria) this;
        }

        public Criteria andScenicInstructionLessThanOrEqualTo(String value) {
            addCriterion("scenic_instruction <=", value, "scenicInstruction");
            return (Criteria) this;
        }

        public Criteria andScenicInstructionLike(String value) {
            addCriterion("scenic_instruction like", value, "scenicInstruction");
            return (Criteria) this;
        }

        public Criteria andScenicInstructionNotLike(String value) {
            addCriterion("scenic_instruction not like", value, "scenicInstruction");
            return (Criteria) this;
        }

        public Criteria andScenicInstructionIn(List<String> values) {
            addCriterion("scenic_instruction in", values, "scenicInstruction");
            return (Criteria) this;
        }

        public Criteria andScenicInstructionNotIn(List<String> values) {
            addCriterion("scenic_instruction not in", values, "scenicInstruction");
            return (Criteria) this;
        }

        public Criteria andScenicInstructionBetween(String value1, String value2) {
            addCriterion("scenic_instruction between", value1, value2, "scenicInstruction");
            return (Criteria) this;
        }

        public Criteria andScenicInstructionNotBetween(String value1, String value2) {
            addCriterion("scenic_instruction not between", value1, value2, "scenicInstruction");
            return (Criteria) this;
        }

        public Criteria andNoticeOfRefundIsNull() {
            addCriterion("notice_of_refund is null");
            return (Criteria) this;
        }

        public Criteria andNoticeOfRefundIsNotNull() {
            addCriterion("notice_of_refund is not null");
            return (Criteria) this;
        }

        public Criteria andNoticeOfRefundEqualTo(String value) {
            addCriterion("notice_of_refund =", value, "noticeOfRefund");
            return (Criteria) this;
        }

        public Criteria andNoticeOfRefundNotEqualTo(String value) {
            addCriterion("notice_of_refund <>", value, "noticeOfRefund");
            return (Criteria) this;
        }

        public Criteria andNoticeOfRefundGreaterThan(String value) {
            addCriterion("notice_of_refund >", value, "noticeOfRefund");
            return (Criteria) this;
        }

        public Criteria andNoticeOfRefundGreaterThanOrEqualTo(String value) {
            addCriterion("notice_of_refund >=", value, "noticeOfRefund");
            return (Criteria) this;
        }

        public Criteria andNoticeOfRefundLessThan(String value) {
            addCriterion("notice_of_refund <", value, "noticeOfRefund");
            return (Criteria) this;
        }

        public Criteria andNoticeOfRefundLessThanOrEqualTo(String value) {
            addCriterion("notice_of_refund <=", value, "noticeOfRefund");
            return (Criteria) this;
        }

        public Criteria andNoticeOfRefundLike(String value) {
            addCriterion("notice_of_refund like", value, "noticeOfRefund");
            return (Criteria) this;
        }

        public Criteria andNoticeOfRefundNotLike(String value) {
            addCriterion("notice_of_refund not like", value, "noticeOfRefund");
            return (Criteria) this;
        }

        public Criteria andNoticeOfRefundIn(List<String> values) {
            addCriterion("notice_of_refund in", values, "noticeOfRefund");
            return (Criteria) this;
        }

        public Criteria andNoticeOfRefundNotIn(List<String> values) {
            addCriterion("notice_of_refund not in", values, "noticeOfRefund");
            return (Criteria) this;
        }

        public Criteria andNoticeOfRefundBetween(String value1, String value2) {
            addCriterion("notice_of_refund between", value1, value2, "noticeOfRefund");
            return (Criteria) this;
        }

        public Criteria andNoticeOfRefundNotBetween(String value1, String value2) {
            addCriterion("notice_of_refund not between", value1, value2, "noticeOfRefund");
            return (Criteria) this;
        }

        public Criteria andIsDeleteIsNull() {
            addCriterion("is_delete is null");
            return (Criteria) this;
        }

        public Criteria andIsDeleteIsNotNull() {
            addCriterion("is_delete is not null");
            return (Criteria) this;
        }

        public Criteria andIsDeleteEqualTo(Boolean value) {
            addCriterion("is_delete =", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteNotEqualTo(Boolean value) {
            addCriterion("is_delete <>", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteGreaterThan(Boolean value) {
            addCriterion("is_delete >", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteGreaterThanOrEqualTo(Boolean value) {
            addCriterion("is_delete >=", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteLessThan(Boolean value) {
            addCriterion("is_delete <", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteLessThanOrEqualTo(Boolean value) {
            addCriterion("is_delete <=", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteIn(List<Boolean> values) {
            addCriterion("is_delete in", values, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteNotIn(List<Boolean> values) {
            addCriterion("is_delete not in", values, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteBetween(Boolean value1, Boolean value2) {
            addCriterion("is_delete between", value1, value2, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteNotBetween(Boolean value1, Boolean value2) {
            addCriterion("is_delete not between", value1, value2, "isDelete");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeIsNull() {
            addCriterion("created_time is null");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeIsNotNull() {
            addCriterion("created_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeEqualTo(Date value) {
            addCriterion("created_time =", value, "createdTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeNotEqualTo(Date value) {
            addCriterion("created_time <>", value, "createdTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeGreaterThan(Date value) {
            addCriterion("created_time >", value, "createdTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("created_time >=", value, "createdTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeLessThan(Date value) {
            addCriterion("created_time <", value, "createdTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeLessThanOrEqualTo(Date value) {
            addCriterion("created_time <=", value, "createdTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeIn(List<Date> values) {
            addCriterion("created_time in", values, "createdTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeNotIn(List<Date> values) {
            addCriterion("created_time not in", values, "createdTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeBetween(Date value1, Date value2) {
            addCriterion("created_time between", value1, value2, "createdTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeNotBetween(Date value1, Date value2) {
            addCriterion("created_time not between", value1, value2, "createdTime");
            return (Criteria) this;
        }

        public Criteria andUpdatedTimeIsNull() {
            addCriterion("updated_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdatedTimeIsNotNull() {
            addCriterion("updated_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdatedTimeEqualTo(Date value) {
            addCriterion("updated_time =", value, "updatedTime");
            return (Criteria) this;
        }

        public Criteria andUpdatedTimeNotEqualTo(Date value) {
            addCriterion("updated_time <>", value, "updatedTime");
            return (Criteria) this;
        }

        public Criteria andUpdatedTimeGreaterThan(Date value) {
            addCriterion("updated_time >", value, "updatedTime");
            return (Criteria) this;
        }

        public Criteria andUpdatedTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("updated_time >=", value, "updatedTime");
            return (Criteria) this;
        }

        public Criteria andUpdatedTimeLessThan(Date value) {
            addCriterion("updated_time <", value, "updatedTime");
            return (Criteria) this;
        }

        public Criteria andUpdatedTimeLessThanOrEqualTo(Date value) {
            addCriterion("updated_time <=", value, "updatedTime");
            return (Criteria) this;
        }

        public Criteria andUpdatedTimeIn(List<Date> values) {
            addCriterion("updated_time in", values, "updatedTime");
            return (Criteria) this;
        }

        public Criteria andUpdatedTimeNotIn(List<Date> values) {
            addCriterion("updated_time not in", values, "updatedTime");
            return (Criteria) this;
        }

        public Criteria andUpdatedTimeBetween(Date value1, Date value2) {
            addCriterion("updated_time between", value1, value2, "updatedTime");
            return (Criteria) this;
        }

        public Criteria andUpdatedTimeNotBetween(Date value1, Date value2) {
            addCriterion("updated_time not between", value1, value2, "updatedTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        private ScenicOtherExample example;

        protected Criteria(ScenicOtherExample example) {
            super();
            this.example = example;
        }

        public ScenicOtherExample example() {
            return this.example;
        }

        @Deprecated
        public Criteria andIf(boolean ifAdd, ICriteriaAdd add) {
            if (ifAdd) {
                add.add(this);
            }
            return this;
        }

        public Criteria when(boolean condition, ICriteriaWhen then) {
            if (condition) {
                then.criteria(this);
            }
            return this;
        }

        public Criteria when(boolean condition, ICriteriaWhen then, ICriteriaWhen otherwise) {
            if (condition) {
                then.criteria(this);
            } else {
                otherwise.criteria(this);
            }
            return this;
        }

        @Deprecated
        public interface ICriteriaAdd {
            Criteria add(Criteria add);
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }

    public interface ICriteriaWhen {
        void criteria(Criteria criteria);
    }

    public interface IExampleWhen {
        void example(ScenicOtherExample example);
    }
}